<div class="users index">
    <h2><?php echo __('Users'); ?></h2>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort('id'); ?></th>
            <th><?php echo $this->Paginator->sort('username'); ?></th>
            <th><?php echo $this->Paginator->sort('password'); ?></th>
            <th><?php echo $this->Paginator->sort('email'); ?></th>
            <th><?php echo $this->Paginator->sort('first_name'); ?></th>
            <th><?php echo $this->Paginator->sort('middle_name'); ?></th>
            <th><?php echo $this->Paginator->sort('last_name'); ?></th>
            <th><?php echo $this->Paginator->sort('aka_first_name'); ?></th>
            <th><?php echo $this->Paginator->sort('aka_last_name'); ?></th>
            <th><?php echo $this->Paginator->sort('dob'); ?></th>
            <th><?php echo $this->Paginator->sort('phone_1'); ?></th>
            <th><?php echo $this->Paginator->sort('phone_2'); ?></th>
            <th><?php echo $this->Paginator->sort('marital_status_id'); ?></th>
            <th><?php echo $this->Paginator->sort('gender_id'); ?></th>
            <th><?php echo $this->Paginator->sort('ethincity_id'); ?></th>
            <th><?php echo $this->Paginator->sort('alternate_contact'); ?></th>
            <th><?php echo $this->Paginator->sort('alternate_phone'); ?></th>
            <th><?php echo $this->Paginator->sort('carrier_id'); ?></th>
            <th><?php echo $this->Paginator->sort('ca_resident'); ?></th>
            <th><?php echo $this->Paginator->sort('role_id'); ?></th>
            <th><?php echo $this->Paginator->sort('active'); ?></th>
            <th><?php echo $this->Paginator->sort('is_union_member'); ?></th>
            <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($users as $user): ?>
            <tr>
                <td><?php echo h($user['User']['id']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['username']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['password']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['email']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['first_name']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['middle_name']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['last_name']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['aka_first_name']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['aka_last_name']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['dob']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['phone_1']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['phone_2']); ?>&nbsp;</td>
                <td>
                    <?php echo $this->Html->link($user['MaritalStatus']['title'], array('controller' => 'marital_statuses', 'action' => 'view', $user['MaritalStatus']['id'])); ?>
                </td>
                <td>
                    <?php echo $this->Html->link($user['Gender']['title'], array('controller' => 'genders', 'action' => 'view', $user['Gender']['id'])); ?>
                </td>
                <td>
                    <?php echo $this->Html->link($user['Ethincity']['title'], array('controller' => 'ethincities', 'action' => 'view', $user['Ethincity']['id'])); ?>
                </td>
                <td><?php echo h($user['User']['alternate_contact']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['alternate_phone']); ?>&nbsp;</td>
                <td>
                    <?php echo $this->Html->link($user['Carrier']['title'], array('controller' => 'carriers', 'action' => 'view', $user['Carrier']['id'])); ?>
                </td>
                <td><?php echo h($user['User']['ca_resident']); ?>&nbsp;</td>
                <td>
                    <?php echo $this->Html->link($user['Role']['title'], array('controller' => 'roles', 'action' => 'view', $user['Role']['id'])); ?>
                </td>
                <td><?php echo h($user['User']['active']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['is_union_member']); ?>&nbsp;</td>
                <td class="actions">
                    <?php echo $this->Html->link(__('View'), array('action' => 'view', $user['User']['id'])); ?>
                    <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $user['User']['id'])); ?>
                    <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $user['User']['id']), array(), __('Are you sure you want to delete # %s?', $user['User']['id'])); ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
    <p>
        <?php
        echo $this->Paginator->counter(array(
            'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
        ));
        ?>	</p>
    <div class="paging">
        <?php
        echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
        echo $this->Paginator->numbers(array('separator' => ''));
        echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
        ?>
    </div>
</div>
<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('New User'), array('action' => 'add')); ?></li>
        <li><?php echo $this->Html->link(__('List Marital Statuses'), array('controller' => 'marital_statuses', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Marital Status'), array('controller' => 'marital_statuses', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Genders'), array('controller' => 'genders', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Gender'), array('controller' => 'genders', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Ethincities'), array('controller' => 'ethincities', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Ethincity'), array('controller' => 'ethincities', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Carriers'), array('controller' => 'carriers', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Carrier'), array('controller' => 'carriers', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Roles'), array('controller' => 'roles', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Role'), array('controller' => 'roles', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Additional Infos'), array('controller' => 'additional_infos', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Additional Info'), array('controller' => 'additional_infos', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Addresses'), array('controller' => 'addresses', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Address'), array('controller' => 'addresses', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List User Agents'), array('controller' => 'user_agents', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User Agent'), array('controller' => 'user_agents', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List User Schools'), array('controller' => 'user_schools', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User School'), array('controller' => 'user_schools', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List User Unions'), array('controller' => 'user_unions', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User Union'), array('controller' => 'user_unions', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Waivers Releases'), array('controller' => 'waivers_releases', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Waivers Release'), array('controller' => 'waivers_releases', 'action' => 'add')); ?> </li>
    </ul>
</div>
